
const cart = {
	namespaced: true,
	state:()=>({
		number:10,
		info:'hello'
	}),
	mutations:{
		addcount(state,value){
			state.number += value
		},
		saveStr(state,val){
			state.info = val
		}
	},
	actions:{
		async getmsg(params){
		let res = await uni.request({
				url:'https://api.uomg.com/api/rand.qinghua',
				method:'GET'
			})
			params.commit('saveStr',res.data.content)
		}
	},
	getters:{}
}
export default cart